.class Lcom/waiqin365/lightapp/im/contactlist/a/j;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/contactlist/a/k;

.field final synthetic b:Lcom/waiqin365/lightapp/im/contactlist/a/i;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/contactlist/a/i;Lcom/waiqin365/lightapp/im/contactlist/a/k;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    iput-object p2, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->a:Lcom/waiqin365/lightapp/im/contactlist/a/k;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    const v4, 0x7f0806b1

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->v:Z

    if-eqz v1, :cond_1

    const-string/jumbo v1, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->s:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string/jumbo v1, "3"

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->s:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->a:Lcom/waiqin365/lightapp/im/contactlist/a/k;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/contactlist/a/k;->a:Landroid/widget/CheckBox;

    invoke-virtual {v0, v2}, Landroid/widget/CheckBox;->setChecked(Z)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightapp/im/activity/AlertDialog;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "msg"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f080306

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->a:Lcom/waiqin365/lightapp/im/contactlist/a/k;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/contactlist/a/k;->a:Landroid/widget/CheckBox;

    invoke-virtual {v0, v2}, Landroid/widget/CheckBox;->setChecked(Z)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightapp/im/activity/AlertDialog;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "msg"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f080309

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    :cond_1
    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v3}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v1, v3}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->a:Lcom/waiqin365/lightapp/im/contactlist/a/k;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/contactlist/a/k;->a:Landroid/widget/CheckBox;

    invoke-virtual {v0, v2}, Landroid/widget/CheckBox;->setChecked(Z)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightapp/im/activity/AlertDialog;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "msg"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v2

    const v3, 0x7f080014

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    :cond_2
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->b(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    check-cast p1, Landroid/widget/CheckBox;

    invoke-virtual {p1}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    invoke-static {v1, v0, v3}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;Lcom/waiqin365/lightapp/kehu/share/a/a;Z)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->c(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Lcom/waiqin365/lightapp/im/contactlist/a/i;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->notifyDataSetChanged()V

    sget-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a()Ljava/util/List;

    move-result-object v3

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    move v1, v2

    :goto_2
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_5

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->v:Z

    if-eqz v0, :cond_3

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    invoke-interface {v4, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_3
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_2

    :cond_4
    check-cast p1, Landroid/widget/CheckBox;

    invoke-virtual {p1}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/share/a/a;->a(Z)V

    goto :goto_1

    :cond_5
    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_6

    sget-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/contactlist/a/j;->b:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a(Lcom/waiqin365/lightapp/im/contactlist/a/i;)Landroid/content/Context;

    move-result-object v2

    const v3, 0x7f0805d3

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_6
    sget-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_0
.end method
